//
//  MovieDetailView.m
//  UI_豆瓣扩展
//
//  Created by dllo on 15/11/8.
//  Copyright © 2015年 张磊. All rights reserved.
//

#import "MovieDetailView.h"

@implementation MovieDetailView

- (void)dealloc
{
    [_countryLabel release];
    [_typeLabel release];
    [_release_dateLabel release];
    [_headImageView release];
    [_rating_countLabel release];
    [_ratingLabel release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
}

- (void)createSubView
{
    self.headImageView = [[UIImageView alloc]initWithFrame:CGRectMake(20, 85, 80, 120)];
    [self addSubview:self.headImageView];
    
    [_headImageView release];
    
    UILabel *aLabel = [[UILabel alloc]initWithFrame:CGRectMake(130, 85, 40, 30)];
    [self addSubview:aLabel];
    aLabel.text = @"评分:";
    [aLabel release];
    
    self.ratingLabel = [[UILabel alloc]initWithFrame:CGRectMake(180, 85, 30, 30)];
    [self addSubview:self.ratingLabel];
    [_ratingLabel release];
    
    UILabel *bLabel = [[UILabel alloc]initWithFrame:CGRectMake(220, 85, 100, 30)];
    [self addSubview:bLabel];
    bLabel.text = @"(         评论)";
    [bLabel release];
    
    self.rating_countLabel = [[UILabel alloc]initWithFrame:CGRectMake(230, 85, 40, 30)];
    [self addSubview:self.rating_countLabel];
    [_rating_countLabel release];
    
    self.release_dateLabel = [[UILabel alloc]initWithFrame:CGRectMake(130, 110, 100, 30)];
    [self addSubview:self.release_dateLabel];
    [_release_dateLabel release];
    
    self.runtimeLabel = [[UILabel alloc]initWithFrame:CGRectMake(130, 135, 100, 30)];
    [self addSubview:self.runtimeLabel];
    [_runtimeLabel release];
    
    self.typeLabel = [[UILabel alloc]initWithFrame:CGRectMake(130, 160, 100, 30)];
    [self addSubview:self.typeLabel];
    [_typeLabel release];
    
    self.countryLabel = [[UILabel alloc]initWithFrame:CGRectMake(130, 185, 100, 30)];
    [self addSubview:self.countryLabel];
    [_countryLabel release];
    
    UILabel *cLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 220, 100, 30)];
    cLabel.font = [UIFont systemFontOfSize:23];
    [self addSubview:cLabel];
    cLabel.text = @"制作人";
    [cLabel release];
    
    self.actorsLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 255, 300, 200)];
    [self addSubview:self.actorsLabel];
    self.actorsLabel.numberOfLines = 0;
    self.actorsLabel.backgroundColor = [UIColor whiteColor];
    self.actorsLabel.lineBreakMode = NSLineBreakByCharWrapping;
    [_actorsLabel release];
    
    UILabel *dLabel = [[UILabel alloc]initWithFrame:CGRectMake(20,self.actorsLabel.frame.origin.y + 75, 100, 30)];
    [self addSubview:dLabel];
    dLabel.text = @"电影情节";
    [dLabel release];
    
    
    
    self.plot_simpleLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 375, 335, 400)];
    [self addSubview:self.plot_simpleLabel];
    self.plot_simpleLabel.numberOfLines = 0;
    self.plot_simpleLabel.backgroundColor = [UIColor whiteColor];
    self.plot_simpleLabel.lineBreakMode = NSLineBreakByCharWrapping;
    [_plot_simpleLabel release];
}





/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
